package month3.day29;

import org.omg.CORBA.PUBLIC_MEMBER;

public class Teacher {
    private String name;
    private int age;
    private int teach;
    private String sex;


    public Teacher() {

    }

    public Teacher(String name, int age, int teach, String sex) {
        this.name = name;
        this.age = age;
        this.teach = teach;
        this.sex = sex;

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getTeach() {
        return teach;
    }

    public void setTeach(int teach) {
        this.teach = teach;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void selfIntroduce() {
        System.out.println("老师叫" + name + ",年龄：" + age + ",教龄：" + teach + ",性别：" + sex);
    }

    public void giveLession() {
        System.out.println("教学生上课");
    }

}
